package com.financial.sys.controller.bank;


import com.financial.common.vo.Result;
import com.financial.sys.query.TAccountFlowQuery;
import com.financial.sys.service.bank.TAccountFlowsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@Api(tags = "账户流水信息")
@RestController
@RequestMapping("/user/accountflow")
public class TAccountFlowController {

    @Autowired
    private TAccountFlowsService tAccountFlowService;

    @ApiOperation("分页查询账户流水")
    @PostMapping("/query")
    public Result selectLoginLog(@ApiParam(name = "tAccountFlowQuery",value = "账户流水查询对象")
                                             TAccountFlowQuery tAccountFlowQuery){
        Map<String,Object> map=tAccountFlowService.selectTAccountFlow(tAccountFlowQuery);
        return Result.ok().data(map);
    }
}
